package com.haier.npt.sso.resources;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.haier.npt.common.JsonResult;
import com.haier.npt.security.domain.SysApp;

public interface LoginResource {

    /**
     * 通过appKey和token模拟登陆
     * @param accessToken
     * @param appKey
     * @return
     */
    @RequestMapping(value = "/simulatedLogin", method = RequestMethod.POST)
    public JsonResult<SysApp> simulatedLogin(@RequestParam("access_token") String accessToken, @RequestParam("app_key") String appKey);
}
